package com.hrzyit.whistle.cases.service

import com.hrzyit.whistle.cases.data.bean.UploadInfo
//import rx.Observable
import io.reactivex.Observable

/**
 * 上传文件模块业务接口
 * @author YangWei
 * @date 2019/3/31
 */
interface IUploadService {

    /**
     * 上传图片
     * @author YangWei
     * @date 2019/3/31
     * @param photo 本地图片文件路径
     * @return Observable<UploadInfo>   FastDfs 文件路径对象 {@link UploadInfo}
     */
    fun uploadPhoto(photo: String): Observable<UploadInfo>

    /**
     * 上传音频文件
     * @author YangWei
     * @date 2019/4/13
     * @param audioFilePath 本地音频文件路径
     * @return Observable<UploadInfo>   FastDfs 文件路径对象 {@link UploadInfo}
     */
    fun uploadRecordAudio(audioFilePath: String): Observable<UploadInfo>
}